package com.cc.visitor.dao;

import com.cc.visitor.entity.LoginQrLog;
import com.mybatisflex.core.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author chanchaw
 * @create 2024-12-11 14:02
 */
@Repository
public interface LoginQrLogMapper extends BaseMapper<LoginQrLog> {
    @Select("select * from login_qr_log where scene_str = #{uuid}")
    List<LoginQrLog> select8uuid(@Param("uuid") String uuid);
    @Select("select * from login_qr_log where scene_str = #{uuid} and open_id != '';")
    //@Select("call usp_getLoginQr8UUID(#{uuid})")// 不过滤 open_id
    List<LoginQrLog> selectLoggedIn(@Param("uuid") String uuid);
}
